<template>
  <div class="dashboard-container">
    <el-carousel :interval="10000" arrow="always" height="calc(100vh - 84px)">
      <el-carousel-item v-for="(img, index) in imageList" :key="index">
        <img :src="img" class="carousel-image">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import welcomeImg from '@/assets/welcome.png'
import zzxImg from '@/assets/zzx.jpg'
import hmbbImg from '@/assets/hmbb.jpg'

export default {
  name: 'Dashboard',
  data() {
    return {
      imageList: [welcomeImg, zzxImg, hmbbImg]
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard-container {
  padding: 0;
  margin: 0;
  height: calc(100vh - 84px);
}
.el-carousel__item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f2f5;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
</style>
